/**
 * 
 */
package com.hoperun.framework.ibatis.page;

import java.io.Serializable;
import java.util.Map;

import com.google.common.collect.Maps;

/**  
 * Copyright: Copyright (c) 2015 XiBang  
 * <br/>
 * ClassName: BootGrid.java
 * @Description: 该类的功能描述
 *
 * @version: v1.0.0
 * @author: fuyu
 * @date: 2015-6-6 下午4:58:19 
 *
 * Modification History:
 * Date         Author          Version            Description
 *---------------------------------------------------------*
 * 2015-6-6	fuyu				v1.0.0				修改原因
 */

/**
 * Copyright: Copyright (c) 2015 XiBang <br/>
 * ClassName: BootGrid.java Description: 该类的功能描述
 * 
 * @version: v1.0.0
 * @author: fuyu
 * @date: 2015-6-6 下午4:58:19
 * 
 *        Modification History: Date Author Version Description
 *        ---------------------------------------------------------* 2015-6-6
 *        fuyu v1.0.0 修改原因
 */

public class BootGrid<T> implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer current = 1;

	private Integer rowCount = 10;

	private Map<String, String> sort = Maps.newHashMap();

	private String searchPhrase;

	private T entity;

	/**
	 * @return the current
	 */
	public Integer getCurrent() {
		return current;
	}

	/**
	 * @param current
	 *            the current to set
	 */
	public void setCurrent(Integer current) {
		this.current = current;
	}

	/**
	 * @return the rowCount
	 */
	public Integer getRowCount() {
		return rowCount;
	}

	/**
	 * @param rowCount
	 *            the rowCount to set
	 */
	public void setRowCount(Integer rowCount) {
		this.rowCount = rowCount;
	}

	/**
	 * @return the sort
	 */
	public Map<String, String> getSort() {
		return sort;
	}

	/**
	 * @param sort
	 *            the sort to set
	 */
	public void setSort(Map<String, String> sort) {
		this.sort = sort;
	}

	/**
	 * @return the searchPhrase
	 */
	public String getSearchPhrase() {
		return searchPhrase;
	}

	/**
	 * @param searchPhrase
	 *            the searchPhrase to set
	 */
	public void setSearchPhrase(String searchPhrase) {
		this.searchPhrase = searchPhrase;
	}

	/**
	 * @return the entity
	 */
	public T getEntity() {
		return entity;
	}

	/**
	 * @param entity
	 *            the entity to set
	 */
	public void setEntity(T entity) {
		this.entity = entity;
	}

	/**
	 * Function: com.xhz.framework.core.ibatis.page.BootGrid::toString <br/>
	 * Description: 该函数的功能描述
	 * 
	 * @return
	 * @version: v1.0.0
	 * @author: fuyu
	 * @date: 2015-6-6 下午5:15:15
	 * 
	 *        Modification History: Date Author Version Description
	 *        ---------------------------------------------------------*
	 *        2015-6-6 fuyu v1.0.0 修改原因
	 */

	@Override
	public String toString() {
		return "BootGrid [current=" + current + ", rowCount=" + rowCount
				+ ", sort=" + sort + ", searchPhrase=" + searchPhrase + "]";
	}

}
